{% extends "index.html" %}
{% load i18n %}

{% block content %}

{% if roster %}
	<h1>{{ roster.name }}</h1>
	{% if persos %}
		<h2> Membres </h2>
		<ul>
		{% for p in persos %}
		    <li>{{ p.name }} <a href="/characters/roster/members/remove/{{roster.id}}/{{p.id}}">Supprimer</a></li>
		{% endfor %}
		</ul>
	{% endif %}
	{% if persosAttente %}
		<h2> Membres en attente de validation</h2>
		<ul>
		{% for p in persosAttente %}
		    <li>{{ p.name }} <a href="/characters/roster/members/{{roster.id}}/{{p.id}}/validate">Valider</a><a href="/characters/roster/members/{{roster.id}}/{{p.id}}/reject">Refuser</a></li>
		{% endfor %}
		</ul>
	{% endif %}
{% endif %}
	
{% endblock %}
